<?php

XT::import('XHttp.XCookie');

class XHttp {
	public $cookie;
	
	public function __construct () {
		$this->cookie = new XCookie;
	}
	
	public function setHeader ($header) {
		header($header);
	}
	
	public function redirect ($url) {
		$this->setHeader('Location', XT::$registry->config->site['baseUrl'].$url);
	}
}